package info.androidhive.slidingmenu;

import android.content.Context;
import android.content.Intent;
import android.util.Log;
import org.apache.*; 

public final class CommonUtilities {
     
    // give your server registration url here
    public static final String SERVER_URL = "http://mindshare.comli.com/gcm/Register.php";
    //public static final String SERVER_URL = "http://192.168.1.72:8888/gcm/register.php"; 
    
    //public static final String SERVER_URL = "http://174.121.75.155/Hosteados/ReciboNomina/sitio_WebService/Registro.aspx";
    // Google project id
    public static final String SENDER_ID = "902371138805"; 
    /**
     * Tag used on log messages.
     */
    static final String TAG = "AndroidHive GCM";
    
 
    static final String DISPLAY_MESSAGE_ACTION =
            "com.example.notificaciones.DISPLAY_MESSAGE";
 
    static final String EXTRA_MESSAGE = "message";
 
    /**
     * Notifies UI to display a message.
     * <p>
     * This method is defined in the common helper because it's used both by
     * the UI and the background service.
     *
     * @param context application's context.
     * @param message message to be displayed.
     */
    static void displayMessage(Context context, String message) {
    	Log.d("DEBUGEANDO","1");
        Intent intent = new Intent(DISPLAY_MESSAGE_ACTION);
        Log.d("DEBUGEANDO","2");
        intent.putExtra(EXTRA_MESSAGE, message);
        Log.d("DEBUGEANDO","3");
        context.sendBroadcast(intent);
        Log.d("DEBUGEANDO","4");
    }
}